package com.szgr.baoyin.activity;

import android.app.Activity;
import android.content.Intent;
import android.os.Bundle;
import android.view.Menu;
import android.view.MenuItem;
import android.view.View;

import com.szgr.baoyin.R;

/**
 * 都银特惠
 */
public class PrivilegeActivity extends BaseActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        setContentView(R.layout.activity_privilege);
        super.onCreate(savedInstanceState);
    }

    @Override
    public void initActionBar() {
        actionBarTitle.setText("都银特惠");
    }

    @Override
    public void initView() {
        findViewById(R.id.privilege_first).setOnClickListener(this);
        findViewById(R.id.privilege_second).setOnClickListener(this);
        findViewById(R.id.privilege_third).setOnClickListener(this);
        findViewById(R.id.privilege_fourth).setOnClickListener(this);


        findViewById(R.id.privilege_book).setOnClickListener(this);
        findViewById(R.id.privilege_book_detail).setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.action_bar_left:
                finish();
                break;
            case R.id.privilege_first:
                startActivity(new Intent(this,VipRuleActivity.class));
                break;
            case R.id.privilege_second:
                startActivity(new Intent(this,VipArticleActivity.class));
                break;
            case R.id.privilege_third:
                startActivity(new Intent(this,VipApplyActivity.class));
                break;
            case R.id.privilege_fourth:
                startActivity(new Intent(this,VipCardActivity.class));
                break;
            case R.id.privilege_book:
            case R.id.privilege_book_detail:
                startActivity(new Intent(this,VipRuleActivity.class));
                break;
        }
    }
}
